package cc.ruih.meizanchen.mm;

import cc.ruih.meizanchen.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;

/**
 * 产前须知
 * @author Ruih
 *
 */
public class AntenatalNotice extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.mm_cqxz);
		
		ImageButton fmzds = (ImageButton) findViewById(R.id.mm_fmzds);
		ImageButton gwqd = (ImageButton) findViewById(R.id.mm_gwqd);
		
		// 跳转到分娩知多少页面
		fmzds.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(AntenatalNotice.this, Childbirth.class);
				startActivity(intent);
			}
		});
		
		// 跳转到购物清单页面
		gwqd.setOnClickListener(new OnClickListener() {
			@Override
			public void onClick(View v) {
				Intent intent = new Intent();
				intent.setClass(AntenatalNotice.this, ShoppingList.class);
				startActivity(intent);
			}
		});
	}

}
